@(message: String, f : Form[Product])

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(simpleInput.f) } 

@main(message) {

  <h2>@message</h2>
  <fieldset style="width: 500px;">
    @helper.form(routes.ProductController.updateProduct) {
      @inputText(f("id"), '_label -> "Id", 'readonly -> "readonly")
      @inputText(f("name"), '_label -> "Name")
      @inputText(f("price"), '_label -> "Price")
      <fieldset style="margin-top: 10px;">
          <input type="submit" value="Update" />
          <a href='@routes.ProductController.allProducts'>Cancel and go Products</a>
      </fieldset>
    }        
  </fieldset>
  
}

